/////////////////////////////////////////////////////////////////////////////
// Name:        TestApp.cpp
// Purpose:     
// Author:      Aleksey Plotnikov
// Modified by: 
// Created:     15/02/2011 15:50:00
// RCS-ID:      
// Copyright:   Diamant Group
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "TestApp.h"
#include "TestMainframe.h"

////@begin XPM images

////@end XPM images


/*!
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( TestApp )
////@end implement app


/*!
 * TestApp type definition
 */

IMPLEMENT_CLASS( TestApp, wxApp )


/*!
 * TestApp event table definition
 */

BEGIN_EVENT_TABLE( TestApp, wxApp )

////@begin TestApp event table entries
////@end TestApp event table entries

END_EVENT_TABLE()


/*!
 * Constructor for TestApp
 */

TestApp::TestApp()
{
    Init();
}


/*!
 * Member initialisation
 */

void TestApp::Init()
{
////@begin TestApp member initialisation
////@end TestApp member initialisation
}

/*!
 * Initialisation for TestApp
 */

bool TestApp::OnInit()
{    
////@begin TestApp initialisation
    // Remove the comment markers above and below this block
	// to make permanent changes to the code.

#if wxUSE_XPM
	wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
	wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
	wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
    wxImage::AddHandler(new wxGIFHandler);
#endif
////@end TestApp initialisation

	TestMainFrame *pFrame = new TestMainFrame( NULL );
	pFrame->Show();

    return true;
}


/*!
 * Cleanup for TestApp
 */

int TestApp::OnExit()
{    
////@begin TestApp cleanup
    return wxApp::OnExit();
////@end TestApp cleanup
}

